<div id="loginForm">
<?php
    echo($javascript->link("preview_image.js"));
    echo $this->Form->create('Host',array('enctype' => 'multipart/form-data'));

    ?>
	<fieldset>
 		<legend><?php __('Host Registration'); ?></legend>
	<?php
		echo $this->Form->input('business_name',array( 'label' => 'Business name'));
		echo $this->Form->input('first_name',array( 'label' => 'First name'));
		echo $this->Form->input('last_name',array( 'label' => 'Last name'));
		echo $this->Form->input('phone',array( 'label' => 'Phone number'));
                echo '<center>';
                echo $this->Form->input('image',array('type'=>'file','id'=>'picField','onchange'=>'preview(this)','label'=>'Profile image'));
                echo $this->Html->image('default_host.jpg', array('alt' => 'Preview','id'=>'previewField'));
                echo '<br/><br/>';
                echo '</center>';
		echo $form->input('email_addr', array('label' => 'Email Address', 'after'=>$form->error('email_addr_unique', 'Host for that email address already exists!')));
                echo $this->Form->input('passwd',array( 'label' => 'Password', 'after'=>$form->error('pass_wrong', 'Password does not match.')));
                echo $this->Form->input('password',array( 'label' => 'Re-type password', 'after'=>$form->error('empty_pass', 'You must retype your password.')));
                
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
